<?php

function TimerOneSecond(){
	global $config;
	//is called every second directly from the main loop
	//xAPLog("TIMER","Check",date ("s"));
	
	//TimerCheck(); // check database for outstanding timers
	foreach($config["timer"] as $value){
		@$value();
	}
	//send intranet messages
	if ($config["intranetonoff"]){
		if(time()-$config["intranetnextxap"]>$config["intranetinterval"]){
			xAPSendIntranet();
			$config["intranetnextxap"]=time();
		}
	}
	
}



?>